import {get, post, del, put} from "@/apis/http/request";
import {AdminProxyUpgradeDetail} from "@/apis/model/proxy/AdminProxyUpgradeDetailModel";

/**
* 得到列表
* @param params
*/
export const getAdminProxyUpgradeDetailList = (params: any) => get("/adminProxyUpgradeDetail/list", params)

/**
* 得到分页列表
* @param params
*/
export const adminProxyUpgradeDetailPage = (params: any) => post("/adminProxyUpgradeDetail/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteAdminProxyUpgradeDetailById = (id: number) => del("/adminProxyUpgradeDetail/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertAdminProxyUpgradeDetail = (param: AdminProxyUpgradeDetail) => post("/adminProxyUpgradeDetail", param)

/**
* 更新数据
* @param param
*/
export const updateAdminProxyUpgradeDetail = (param: AdminProxyUpgradeDetail) => put("/adminProxyUpgradeDetail", param)

/**
 * 新增数据
 * @param param
 */
export const proxyUpgradeDetailList = (id: any) => get("/adminProxyUpgradeDetail/proxyUpgradeDetailList/"+ id)
